package top.lshaci.framework.file.fdfs.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import top.lshaci.framework.common.constants.ErrorInfo;

/**
 * FileFdfsErrorCode
 *
 * @author lshaci
 * @since 1.0.9
 */
@Getter
@AllArgsConstructor
public enum FileFdfsErrorInfo implements ErrorInfo {

    /**
     * Fetch tracker server failed.
     */
    fetch_tracker_server_failed(506_1_01, "获取FastDfs服务器失败"),
    /**
     * Fastdfs file server connection failed.
     */
    file_server_connection_failed(506_1_02, "文件服务器连接失败"),
    /**
     * File deletion failed.
     */
    file_delete_failed(506_1_03, "删除文件失败"),
    ;

    /**
     * 异常码
     */
    private final int code;
    /**
     * 异常信息
     */
    private final String msg;

}
